package smartcampus.scjava.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import smartcampus.scjava.POJO.DO.Laboratory;
import smartcampus.scjava.mapper.LaboratoryMapper;
import smartcampus.scjava.service.ILaboratoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 实验室表 服务实现类
 * </p>
 *
 * @author xian
 * @since 2023-12-05
 */
@Service
public class LaboratoryServiceImpl extends ServiceImpl<LaboratoryMapper, Laboratory> implements ILaboratoryService {

    @Override
    public Laboratory getByNo(String no) {
        QueryWrapper<Laboratory> wrapper = new QueryWrapper<>();
        wrapper.lambda().eq(Laboratory::getLaboratoryNo, no);
        return getOne(wrapper);
    }
}
